package edu.umd.ion.wavemeter.service;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ChannelEvent implements IsSerializable {
	public static final int MOUSE_CLICK = 1;
	
	private int VirtChannel;
	private int Code;
	private boolean ControlDown;
	private boolean AltDown;
	private boolean ShiftDown;
	private boolean MetaDown;
	private int XMovement;
	private int YMovement;

	public ChannelEvent() {
		Code = 0;
		VirtChannel = 0;
	}
	
	public ChannelEvent(int virtchannel, int code) {
		VirtChannel = virtchannel;
		Code = code;
	}
	
	public int getVirtChannel() {
		return VirtChannel;
	}

	public void setVirtChannel(int virtChannel) {
		VirtChannel = virtChannel;
	}

	public int getCode() {
		return Code;
	}

	public void setCode(int code) {
		Code = code;
	}

	public boolean isControlDown() {
		return ControlDown;
	}

	public void setControlDown(boolean controlDown) {
		ControlDown = controlDown;
	}

	public boolean isAltDown() {
		return AltDown;
	}

	public void setAltDown(boolean altDown) {
		AltDown = altDown;
	}

	public boolean isShiftDown() {
		return ShiftDown;
	}

	public void setShiftDown(boolean shiftDown) {
		ShiftDown = shiftDown;
	}

	public boolean isMetaDown() {
		return MetaDown;
	}

	public void setMetaDown(boolean metaDown) {
		MetaDown = metaDown;
	}

	public int getXMovement() {
		return XMovement;
	}

	public void setXMovement(int xMovement) {
		XMovement = xMovement;
	}

	public int getYMovement() {
		return YMovement;
	}

	public void setYMovement(int yMovement) {
		YMovement = yMovement;
	}
	
}
